package v2;
public class State2D extends State {

	public State2D() {
		super(2, 2);
	}

	public double[] getPos() {
		return getOrder(0);
	}
	public Point getPointPos(){
		return new Point(getPX(), getPY());
	}

	public double getPX() {
		return getPos()[0];
	}

	public double getPY() {
		return getPos()[1];
	}

	public void setPX(double val) {
		setAtDimInOrder(0, 0, val);
	}

	public void setPY(double val) {
		setAtDimInOrder(1, 0, val);
	}

	public double[] getVel() {
		return getOrder(1);
	}

	public double getVX() {
		return getOrder(1)[0];
	}

	public double getVY() {
		return getOrder(1)[1];
	}

	public void setVX(double val) {
		setAtDimInOrder(0, 1, val);
	}

	public void setVY(double val) {
		setAtDimInOrder(1, 1, val);
	}

	public void setV(double[] val) {
		setAtDimInOrder(0, 1, val[0]);
		setAtDimInOrder(1, 1, val[1]);
	}

}
